package us.pigsoft.client;

import java.awt.Graphics2D;
import java.util.ArrayList;

public class GuiInterface {
	
	ArrayList<GuiElement> elements;
	
	public GuiInterface(MainInterface m)
	{
		elements = new ArrayList<GuiElement>();
	}
	
	public void addElement(GuiElement element)
	{	
		elements.add(element);
	}
	
	public void drawScreenElements(Graphics2D g)
	{
		for(GuiElement e : elements)
			e.draw(g);
	}
	
	public void update() {
		for(GuiElement e : elements)
			e.update();
	}
}
